/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.faith.mahounoshoujo.game.model.character.playable;

import com.faith.mahounoshoujo.game.model.character.skill.UltraSkill;
import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author Faith
 */
public class PlayableGroup {
    private ArrayList<PlayableCharacter> characters;

    private int activeCharacterIndex;

    private UltraSkill ultraSkill;

    public PlayableCharacter getActiveCharacter() {
        return characters.get(activeCharacterIndex);
    }

    public ArrayList<PlayableCharacter> getCharacters() {
        return characters;
    }

    public void setCharacters(ArrayList<PlayableCharacter> characters) {
        this.characters = characters;
    }

    public PlayableCharacter switchActiveCharacter(){
        activeCharacterIndex = (activeCharacterIndex + 1) % characters.size();
        return characters.get(activeCharacterIndex);
    }

    public int getActiveCharacterIndex() {
        return activeCharacterIndex;
    }

    public void setActiveCharacterIndex(int activeCharacterIndex) {
        this.activeCharacterIndex = activeCharacterIndex;
    }

    public UltraSkill getUltraSkill() {
        return ultraSkill;
    }

    public void setUltraSkill(UltraSkill ultraSkill) {
        this.ultraSkill = ultraSkill;
    }
}
